import {Component, OnInit} from '@angular/core';
import {Http} from '@angular/http';
import {HttpClient} from '@angular/common/http';

@Component({
  selector: 'app-dashboard',
  templateUrl: './dashboard.component.html',
  styleUrls: ['./dashboard.component.css']
})
export class DashboardComponent implements OnInit {

  constructor(private http: Http,
              private httpClient: HttpClient) {
  }

  ngOnInit() {
    // this.http.get('/stock');
    this.httpClient.get('/stock');
  }


}
